# encoding=utf-8
n = input()
n = int(n)
s1 = f"每人分得{n//5}个苹果."
print(s1)
s2 = "一共分出去{0:d}个苹果.".format(n)
print(s2)
print("交还老师%d个苹果." % (n%5))